gdk: Add macros for left, middle and right buttons
authorCarlos Garcia Campos <cgarcia@igalia.com>
Wed, 25 Jan 2012 14:28:14 +0000 (15:28 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Fri, 27 Jan 2012 08:47:42 +0000 (09:47 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=668688

docs/reference/gdk/gdk3-sections.txt
gdk/gdkevents.h

index d5deb42aa21657f6cf2bb003271f016b0ee9018d..605dbeb3ec1306f946c5a6767d4052f4fa74cbde 100644 (file)
@@ -759,6 +759,9 @@ GDK_PRIORITY_EVENTS
 GDK_PRIORITY_REDRAW
 GDK_EVENT_PROPAGATE
 GDK_EVENT_STOP
+GDK_BUTTON_PRIMARY
+GDK_BUTTON_MIDDLE
+GDK_BUTTON_SECONDARY
 
 <SUBSECTION>
 gdk_events_pending
index d8a1f761d8c24bf936d0cb64dcc13a611a1216bc..197b03ed55712b7a7d3b63f9db00459c2d899dfd 100644 (file)
@@ -94,6 +94,37 @@ G_BEGIN_DECLS
  */
 #define GDK_EVENT_STOP          (TRUE)
 
+/**
+ * GDK_BUTTON_PRIMARY:
+ *
+ * The primary button. This is typically the left mouse button, or the
+ * right button in a left-handed setup.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_PRIMARY      (1)
+
+/**
+ * GDK_BUTTON_MIDDLE:
+ *
+ * The middle button.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_MIDDLE       (2)
+
+/**
+ * GDK_BUTTON_SECONDARY:
+ *
+ * The secondary button. This is typically the right mouse button, or the
+ * left button in a left-handed setup.
+ *
+ * Since: 3.4
+ */
+#define GDK_BUTTON_SECONDARY    (3)
+
+
+
 typedef struct _GdkEventAny        GdkEventAny;
 typedef struct _GdkEventExpose     GdkEventExpose;
 typedef struct _GdkEventVisibility  GdkEventVisibility;